home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 9866 / 9866.xpi / modules / rss / 208.jsm < prev    next >
Encoding:
Text File  |  2009-09-27  |  1.0 KB  |  37 lines

  1. Components.utils.import("resource://samfind/rss/samfind_modrssutils.jsm");
  2.  
  3. var EXPORTED_SYMBOLS = ["samfindRSSGetLink", "samfindRSSGetTitle", "samfindRSSGetDate", "samfindRSSGetImage", "samfindRSSGetContent"];
  4.  
  5. function samfindRSSGetLink(websiteRssUrl, item)
  6. {
  7.     return null;    
  8. }
  9.  
  10. function samfindRSSGetTitle(websiteRssUrl, item)
  11. {
  12.     return null;    
  13. }
  14.  
  15. function samfindRSSGetDate(websiteRssUrl, item)
  16. {
  17.     return null;
  18. }
  19.  
  20. function samfindRSSGetImage(websiteRssUrl, item)
  21. {
  22.     return " ";
  23. }
  24.  
  25. function samfindRSSGetContent(websiteRssUrl, item, title, link)
  26. {
  27.     var content = (item.getElementsByTagName("description"))[0];
  28.     if (!content)
  29.     {
  30.         return null;
  31.     }
  32.     var response = content.textContent;
  33.     response = response.replace('<td width="80" align="center" valign="top"><font style="font-size:85%;font-family:arial,sans-serif"></font></td>', "");
  34.     response = response.replace('<br /><div style="padding-top:0.8em;"><img alt="" height="1" width="1" /></div>', "");
  35.     response = response.replace("<nobr>", " <nobr>", "g");
  36.     return response;
  37. }